﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="CRM.Web.SupplierManage.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
</head>
<body>
    <form id="form1" runat="server"  defaultbutton="btnSearch" >
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

	
    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" >供应商列表</asp:Label></div>
    </div>
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
<div style="width: 100%">
    <div class="listdiv">
        <table border="0" cellpadding="0" cellspacing="0" class="search"  align="center">
            <tr>
                <td class="title"><div  class="nowrap">
                    供应商名称:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtSUPPLIERNAME" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                        TextMode="SingleLine"></asp:TextBox>
                </td>
                <td class="title"><div  class="nowrap">
                    供应商代码:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtSUPPLIERCODE" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                        TextMode="SingleLine"></asp:TextBox>
                </td>
                <td class="title"><div  class="nowrap">
                    创建时间:</div>
                </td>
                <td class="content">
                    <asp:TextBox ID="txtCREATETIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                        ID="txtCREATETIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                </td>
                <td class="title">
                </td>
                <td class="content">
                </td>
                <td class="title" style="width: auto;">
                    &nbsp;
                </td>
                <td class="content"><div style="width: 100px; " class="nowrap">
                    <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                        OnClick="btnSearch_Click" /></div>
                </td>
            </tr>
        </table>
        <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False"
            OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting"
            AllowPaging="True" AllowSorting="True"  SortExpressionValue="SUPPLIERID"  
            SortDirectionValue="DESC" >
            <Columns>
			<asp:BoundField DataField="SUPPLIERID" HeaderText="供应商编号"  SortExpression="SUPPLIERID"  Visible="False" />
			    <asp:TemplateField HeaderText="供应商代码" SortExpression="SUPPLIERCODE">
                    <ItemTemplate>
                <asp:HyperLink id="hlModifySUPPLIERCODE" runat="server" NavigateUrl='<%# Eval("SUPPLIERID", ModifyUrl) %>' Text='<%# Bind("SUPPLIERCODE") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
			<asp:BoundField DataField="SUPPLIERSHORTNAME" HeaderText="供应商简称"  SortExpression="SUPPLIERSHORTNAME"  Visible="False" />
			<asp:BoundField DataField="SUPPLIERNAME" HeaderText="供应商名称"  SortExpression="SUPPLIERNAME" />
			<asp:BoundField DataField="CORPCODE" HeaderText="企业编码"  SortExpression="CORPCODE"  Visible="False" />
			<asp:BoundField DataField="BRANDCODE" HeaderText="品牌编码"  SortExpression="BRANDCODE"  Visible="False" />
			<asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME"  Visible="False" />
			<asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID"  Visible="False" />
			<asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE"  Visible="False" />
			<asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID"  Visible="False" />
			<asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE"  Visible="False" />
			<asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间"  SortExpression="LASTMODIFYTIME"  Visible="False" />
			<asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK"  Visible="False" />
			<asp:BoundField DataField="STATUS" HeaderText="状态"  SortExpression="STATUS" />
			<asp:BoundField DataField="STATUSLOG" HeaderText="记录状态变更日志"  SortExpression="STATUSLOG" Visible="False"  />
			<asp:BoundField DataField="FTIMESTAMP" HeaderText="时间戳"  SortExpression="FTIMESTAMP"  Visible="False" />
			<asp:BoundField DataField="OPMGR" HeaderText="业务经理"  SortExpression="OPMGR" />
			<asp:BoundField DataField="OPMGRPHONE" HeaderText="经理电话"  SortExpression="OPMGRPHONE" />
			<asp:BoundField DataField="LINKMAN" HeaderText="联系人"  SortExpression="LINKMAN" />
			<asp:BoundField DataField="LINKPHONE" HeaderText="联系电话"  SortExpression="LINKPHONE" />
			<asp:BoundField DataField="WORKPHONE" HeaderText="值班电话"  SortExpression="WORKPHONE" />
			<asp:BoundField DataField="LINKMOBILE" HeaderText="联系手机"  SortExpression="LINKMOBILE" />
			<asp:BoundField DataField="FAX" HeaderText="传真"  SortExpression="FAX"  Visible="False" />
			<asp:BoundField DataField="ADDRESS" HeaderText="地址"  SortExpression="ADDRESS"  Visible="False" />
			<asp:BoundField DataField="EMAIL" HeaderText="邮件地址"  SortExpression="EMAIL"  Visible="False" />
			<asp:BoundField DataField="LEGALPERSON" HeaderText="法人"  SortExpression="LEGALPERSON"  Visible="False" />
			<asp:BoundField DataField="SUPPLYMODE" HeaderText="供货方式"  SortExpression="SUPPLYMODE"  Visible="False" />
			<asp:BoundField DataField="COMPANYURL" HeaderText="公司网址"  SortExpression="COMPANYURL"  Visible="False" />
			<asp:BoundField DataField="SUPPORTINGCASE" HeaderText="给同行业其它主机厂配套情况"  SortExpression="SUPPORTINGCASE"  Visible="False" />
			<asp:BoundField DataField="INDUSTRYTYPE" HeaderText="行业类型"  SortExpression="INDUSTRYTYPE" />
			<asp:BoundField DataField="BANK" HeaderText="开户行"  SortExpression="BANK"  Visible="False" />
			<asp:BoundField DataField="ACCOUNTNUMBER" HeaderText="帐号"  SortExpression="ACCOUNTNUMBER" Visible="False"  />
			<asp:BoundField DataField="LINKDEPARTMENTID" HeaderText="联系部门编号"  SortExpression="LINKDEPARTMENTID"  Visible="False" />
			<asp:BoundField DataField="LINKDEPARTMENTNAME" HeaderText="联系部门名称"  SortExpression="LINKDEPARTMENTNAME" />
			<asp:BoundField DataField="LINKZIP" HeaderText="联系邮编"  SortExpression="LINKZIP"  Visible="False" />
			<asp:BoundField DataField="SAFETYLICENSE" HeaderText="安全生产许可证"  SortExpression="SAFETYLICENSE"  Visible="False" />
			<asp:BoundField DataField="CHANGENOTIFICATION" HeaderText="变更通知"  SortExpression="CHANGENOTIFICATION"  Visible="False" />
			<asp:BoundField DataField="ENCODINGTIME" HeaderText="编码申请时间"  SortExpression="ENCODINGTIME"  Visible="False" />
			<asp:BoundField DataField="ENCODINGISSUEDTIME" HeaderText="编码下发时间"  SortExpression="ENCODINGISSUEDTIME" Visible="False"  />
			<asp:BoundField DataField="FACTORYPHOTO" HeaderText="厂内照片"  SortExpression="FACTORYPHOTO"  Visible="False" />
			<asp:BoundField DataField="QUALITYDOCUMENTS" HeaderText="产品质量证明文件"  SortExpression="QUALITYDOCUMENTS" Visible="False"  />
			<asp:BoundField DataField="CERTIFICATION" HeaderText="取得认证资格的证明文件"  SortExpression="CERTIFICATION" Visible="False"  />
			<asp:BoundField DataField="ENTERPRISEOVERVIEW" HeaderText="企业概况"  SortExpression="ENTERPRISEOVERVIEW"  Visible="False" />
			<asp:BoundField DataField="OWNERSHIPSTRUCTURE" HeaderText="所有权结构"  SortExpression="OWNERSHIPSTRUCTURE" Visible="False"  />
			<asp:BoundField DataField="RESPECTIVEDIVISION" HeaderText="所属事业部"  SortExpression="RESPECTIVEDIVISION"  Visible="False" />
			<asp:BoundField DataField="ZIP" HeaderText="邮编"  SortExpression="ZIP"  Visible="False" />
			<asp:BoundField DataField="COUNTRY" HeaderText="国别"  SortExpression="COUNTRY" />
			<asp:BoundField DataField="PROVINCES" HeaderText="省市"  SortExpression="PROVINCES" />
			<asp:BoundField DataField="COUNTY" HeaderText="县乡"  SortExpression="COUNTY" />
			<asp:BoundField DataField="REGISTRATIONTYPE" HeaderText="注册类型"  SortExpression="REGISTRATIONTYPE"  Visible="False" />
			<asp:BoundField DataField="REGISTEREDCAPITAL" HeaderText="注册资金"  SortExpression="REGISTEREDCAPITAL" Visible="False"  />
			<asp:BoundField DataField="LICENSENUMBER" HeaderText="营业执照注册号"  SortExpression="LICENSENUMBER" Visible="False"  />
			<asp:BoundField DataField="TESTINGEQUIPMENT" HeaderText="主要检测设备及检测仪器"  SortExpression="TESTINGEQUIPMENT"  Visible="False" />
			<asp:BoundField DataField="QUALITYSYSTEMDOC" HeaderText="主要质量制度文件"  SortExpression="QUALITYSYSTEMDOC"  Visible="False" />
			<asp:BoundField DataField="CODECARDNUMBER" HeaderText="组织结构代码证号码"  SortExpression="CODECARDNUMBER"  Visible="False" />
			<asp:BoundField DataField="CODECARDATTACHMENT" HeaderText="组织机构代码证附件"  SortExpression="CODECARDATTACHMENT"  Visible="False" />
			<asp:BoundField DataField="SUPPLIERRELATIONSHIP" HeaderText="供货关系"  SortExpression="SUPPLIERRELATIONSHIP" />
			<asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号"  SortExpression="BUSINESSDIVISIONID"  Visible="False" />
			<asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称"  SortExpression="BUSINESSDIVISIONNAME" Visible="False"  />
			<asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码"  SortExpression="BUSINESSDIVISIONCODE" Visible="False" />
			<asp:TemplateField HeaderText="操作" ShowHeader="False">
                <itemtemplate>
                <div style="white-space: nowrap;">
                <asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("SUPPLIERID", ModifyUrl) %>'>详细</asp:HyperLink>
                <asp:LinkButton id="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                </div>
				</itemtemplate>
            </asp:TemplateField>
            </Columns>	
            <RowStyle CssClass="row" />
            <AlternatingRowStyle CssClass="row2" />
            <HeaderStyle CssClass="header" />	
            <PagerStyle CssClass="pager" />	
        </dp:WebGridView>
        </div>
    </div>
 </div>
    </form>
</body>
</html>
